package com.module.main.test;

import dagger.Binds;
import dagger.Module;
import dagger.Provides;
import ren.nearby.http.scope.ActivityScoped;

import com.module.bean.beans.LoginBean;

/**
 * Created by Administrator on 2018/5/3 0003.
 */

@Module
public abstract class TemplateDaggerAct2Module {


    /**
     * 构建数据 使用注解  @Provides 标记方式 provideXXX 类为@Module
     */
    @Provides
    static LoginBean provideLoginBean() {
        return new LoginBean(" 帅气 ", true);
    }

    @ActivityScoped
    @Binds
    abstract TemplateDaggerActContract.Action taskAction(TemplateDaggerActAction templateDaggerActAction);
}
